export type AlertProps = {
  info?: boolean;
  error?: boolean;
  caption?: string;
  warning?: boolean;
  success?: boolean;
};

export const getClassName = (props: AlertProps) => [
  'alert',
  props?.info && 'aler-info',
  props?.error && 'alert-error',
  props?.success && 'alert-success',
  props?.warning && 'alert-warning',
].filter(Boolean).join(' ');
